package com.bjfu.college.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.bjfu.college.pojo.IntentionSchemeIntentionRecord;
import com.bjfu.college.pojo.UniversityIntentionRecord;
import com.bjfu.college.vo.RiskInfo;

import java.util.List;

/**
* @author 87290
* @description 针对表【intention_scheme_intention_record】的数据库操作Service
* @createDate 2023-07-13 17:37:39
*/
public interface IntentionSchemeIntentionRecordService extends IService<IntentionSchemeIntentionRecord> {

    RiskInfo addSchemeRecordRelation(List<UniversityIntentionRecord> universityIntentionRecordList,
                                     int schemeId, int predictScore, int scoreBias);

    boolean updateRecordsRankById(int schemeId, int recordId, int newRank);

    int deleteSchemeRecordRelation(int schemeId);

    int logicDelete(int schemeId, int recordId);

    int recoverLogicDeleted(int schemeId, List<Integer> ids);

    List<Integer> queryRiskBySchemeId(int schemeId);
}
